Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

climbing: Add climbing restriction + show authors on routes #404

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

jvaclavik
Copy link
Collaborator

climbing not allowed on crag
Screenshot 2024-07-07 at 16 35 20

climbing not allowed on area
Screenshot 2024-07-07 at 16 35 12

climbing restricted on crag
Screenshot 2024-07-07 at 16 35 07

@jvaclavik jvaclavik requested a review from zbycz July 7, 2024 14:37
Copy link

vercel bot commented Jul 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
osmapp ✅ Ready (Inspect) Visit Preview Jul 8, 2024 7:58pm

@@ -100,6 +101,8 @@ export const FeaturePanelInner = () => {
<FeatureHeading />
<ParentLink />

<ClimbingRestriction />
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zbycz what about this? I know it shouldn't be here because it's generic FeaturePanel, but where to put it if it's for all features with climbing tag?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is OK to have parts of feature panel, which are rendered only sometimes.

In future we could extend FeaturedTags to accomodate this, or even extend iD tagging scheme.

@jvaclavik jvaclavik changed the title climbing: Add climbing restriction climbing: Add climbing restriction + show authors on routes Jul 7, 2024
@@ -55,6 +55,7 @@ export const osmToClimbingRoutes = (feature: Feature): Array<ClimbingRoute> => {
difficulty: getDifficulty(route.tags),
paths,
photoToKeyMap,
author: route.tags.author,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use feature.tags.author instead of adding a new field? We will have to move all of it nevertheless.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted but it needs broader refactoring. Right now we have temp object for editing with ClimbingRoute type, so this whole needs to be refactored.

@jvaclavik jvaclavik merged commit 57f2c85 into master Jul 8, 2024
2 checks passed
@jvaclavik jvaclavik deleted the climbing-add-author-and-restriction branch July 8, 2024 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants